<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'trade.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<table>
  	<tr>
  		<td>交易时间</td>
  		<td>交易类型</td>
  		<td>交易分值</td>
  		<td>经手人</td>
  		<td>余额</td>
  	</tr>
    <s:iterator value="page.data">
    	<tr>
    		<td><s:property value="tradeTime"/></td>		
    		<td><s:property value="tradeType"/></td>		
    		<td><s:property value="score"/></td>		
    		<td><s:property value="handle"/></td>		
    		<td><s:property value="amount"/></td>		
    	</tr>
    </s:iterator>
    </table>
    
    <form action="/newbingo/test/TradeRecord_saveTrade.action" method="post">
    	<input type="hidden" name="uno" value="${uno }"/>
    	<table>
    		<tr>
    			<td>账户名：</td>
    			<td>${memberDto.uname }</td>
    		</tr>
    		<tr>
    			<td>账户余额：</td>
    			<td><input id="amount" value="${memberDto.amount }" /></td>
    		</tr>
    		<tr>
    			<td>交易金额</td>
    			<td><input name="score" /></td>
    		</tr>
    		<tr>
    			<td>充值类型</td>
    			<td>
    				<select name="tradeType">
    					<option value="提现">提现</option>
    					<option value="充值">充值</option>
    				</select>
    			</td>
    		</tr>
    	<input type="submit"/>
    	</table>
    </form>
  </body>
</html>
